package com.zang.blogz.constant;

import org.bouncycastle.pqc.jcajce.provider.qtesla.SignatureSpi;

/**
 * @Author: ZVerify
 * @Description:  第三方登录参数常量
 * @DateTime: 2022/9/2 19:36
 **/
public class SocialLoginConstant {

    /**
     * oauth2登录方式
     */
    public static final String GRANT_TYPE = "grant_type";

    /**
     * 微博uid
     */
    public static final String UID = "uid";

    /**
     * oauth2客户端id
     */
    public static final String CLIENT_ID = "client_id";

    /**
     * oauth2客户端密码
     */
    public static final String CLIENT_SECRET = "client_secret";

    /**
     * code
     */
    public static final String CODE = "code";

    /**
     * oauth2回调域名
     */
    public static final String REDIRECT_URI = "redirect_uri";

    /**
     * QQ openId
     */
    public static final String QQ_OPEN_ID = "openid";

    /**
     * 访问令牌
     */
    public static final String ACCESS_TOKEN = "access_token";

    /**
     * QQ AppId
     */
    public static final String OAUTH_CONSUMER_KEY = "oauth_consumer_key";

    /**
     * gitee获取access_token地址
     */
    public static final String OAUTH2_GITEE_CODE = "https://gitee.com/oauth/token?grant_type=authorization_code&client_id=%s&redirect_uri=%s&client_secret=%s&code=%s";

    /**
     * gitee getUserInfo by access_token
     */
    public static final String OAUTH2_GITEE_USERINFO = "https://gitee.com/api/v5/user?access_token=%s";
}
